package com.lx.innerclass;

public class car {
    private String name;
    public String age;
    //内部类可以访问外部
    //外部类必须创建对象才可以访问内部


    public class engineer
    {
        public String engnename;
        public int engneage;
        public void show()
        {
            System.out.println(name);
            System.out.println(age);
        }
    }
}
